﻿#ifndef CONFIGURE_H
#define CONFIGURE_H

//#include <unistd.h>
//#include <netinet/in.h>
#include <stdio.h>
#include <iostream>
using namespace std;

#include "../tools/CPtrList.h"

extern bool GetProfileString(char key[],char value[],char str[],int strlen,char filename[]);
extern bool PutProfileString(char key[],char value[],char str[],char filename[]);

class CConfigure
{
public:
    CConfigure();
    ~CConfigure();

    void SyncSystemTime(char *buf);     //负责时间的解包
    void SyncSystemTime(long time);     //校验时间

    int GetNoPersonTime();
    void SetNoPersonTime(char *buf);
private:
    int m_nNoPersonTime;
};

#endif //CONFIGURE_H


